# coding=utf-8
def jie(a):
    b = 1
    for i in range(1,a+1):
        b = b*i
    return b
for i in range(1,21):
    print "%d!=%d"%(i,jie(i))
